﻿package com.schimanek.ui.scrolling 
{
	import flash.display.DisplayObject;
	import flash.display.Sprite;
	import flash.geom.Rectangle;
	
	/**
	 * ...
	 * @author Gregor Schimanek
	 */
	public class ScrollableContainer extends Sprite
	{
		public var content		:Sprite
		private var _area		:Rectangle;
		public function ScrollableContainer(area:Rectangle) 
		{
			content = new Sprite();
			addChild(content);
			this.area = area
			scrollRect = area;
		}
		
		public function get area():Rectangle { return _area; }
		
		public function set area(value:Rectangle):void 
		{
			_area = value;
		}
		
	}
	
}